//引入Vue
import Vue from "vue"
//引入App
import App from "./App.vue"
//引入VueRouter
import VueRouter from "vue-router"
//引入路由器
import router from "./router"

// 完整引入element文件
// import ElementUI from "element-ui"
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI)

// 部分引入
import { Button, Row ,DatePicker} from 'element-ui';
Vue.component(Button.name, Button);
Vue.component(Row.name, Row);
Vue.component(DatePicker.name, DatePicker);

//关闭Vue的生产提示
Vue.config.productionTip = false
//应用插件
Vue.use(VueRouter)

//创建vm
new Vue({
  el: "#app",
  render: (h) => h(App),
  router: router,
})
